package com.liu.project.dao;

import com.liu.project.kmeans.Kmeans_data;
import com.liu.project.pojo.CKmeas;
import com.liu.project.pojo.Certificate;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @program: project
 * @description: 证书操作
 * @author: 86187
 * @create: 2022-02-16 14:58
 **/

@Mapper
@Repository
public interface CertificateMapper {

//   获取所有的证书
   List<Certificate> findAllCertificate();
//根据证书id查找证书
   Certificate findCertificateById(int cid);

   //根据学科id返回的数据
   List<Certificate> findCertificateBySid(int sid );


  // int findCertificateCount(String name,Long cid);

   List<Certificate> findCertificateByKey(String name);


    int insertCertificate(Certificate certificate);

    int updateCertificate(Certificate certificate);

    int  deleteCertificate(int cid);

    List<CKmeas> getXAndY();


}
